import request from '@/utils/request'


export function getApiCarList(params) {
    return request({
        url: '/api/app/car/page-list',
        method: 'get',
        params
    })
}
/**
 * 获取所有门禁消息
 */
export function getApiAccessList(params) {
    return request({
        url: '/api/app/access/direction-list',
        method: 'get',
        params
    })
}

export function getApiObtainCar(id) {
    return request({
        url: `/api/app/car/${id}/obtain-car`,
        method: 'post',
    })
}

export function inserApiCar(data) {
    return request({
        url: '/api/app/car/ed-car',
        method: 'post',
        data
    })
}

export function updateApiCar(data) {
    return request({
        url: '/api/app/car/modify-car',
        method: 'post',
        data
    })
}


